package cn.com.jonpad.demo04_mybatis.config;

import cn.com.jonpad.demo04_mybatis.plugin.HelloMyBatisPlugin;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

@Configuration
public class MyBatisPluginConfig {
	@Bean
	public HelloMyBatisPlugin helloMyBatisPlugin(){
		HelloMyBatisPlugin helloMyBatisPlugin = new HelloMyBatisPlugin();
		Properties properties = new Properties();
		properties.setProperty("dialect", "mysql");
		helloMyBatisPlugin.setProperties(properties);
		return helloMyBatisPlugin;
	}
}
